//
//  FlutterQQApiHandler.h
//  Pods-Runner
//
//  Created by lu on 8/11/2019.
//

#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#import <TencentOpenAPI/TencentOAuth.h>
#import <TencentOpenAPI/QQApiInterface.h>

NS_ASSUME_NONNULL_BEGIN

@interface FlutterQQApiHandler : NSObject

- (instancetype)initWithRegistrar:(NSObject <FlutterPluginRegistrar> *)registrar;

// MARK: - QQ登录

// qq授权
- (void)qqRegisterWithCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// QQ登录
- (void)qqAuthWithCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// 是否安装QQ
- (void)qqIsInstalledWithCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// 退出QQ
- (void)qqLogoutWithCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// 获取用户信息
- (void)qqGetUserInfoWithCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// MARK: - QQ分享

// 分享文本到QQ
- (void)qqShareTextWithCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// 分享图片到QQ
- (void)qqShareImageWithCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// 分享音乐到QQ
- (void)qqShareMusicWithCall:(FlutterMethodCall *)call result:(FlutterResult)result;

// 分享网页到QQ
- (void)qqShareWebPageWithCall:(FlutterMethodCall *)call result:(FlutterResult)result;

@end

NS_ASSUME_NONNULL_END
